import {request} from "@/utils/request/request";

/**
 *  我的 - 调休
 */
export class LeaveApi {

    /**
     *  分页查询
     */
    static page(data) {
        return request({
            url: '/ctApi/leave/page',
            method: 'get',
            data: data
        })
    }

    /**
     *  新增
     */
    static add(data) {
        return request({
            url: '/ctApi/leave/add',
            method: 'post',
            data: data
        })
    }

    /**
     *  编辑
     */
    static edit(data) {
        return request({
            url: '/ctApi/leave/edit',
            method: 'post',
            data: data
        })
    }

    /**
     *  详情
     */
    static detail(data) {
        return request({
            url: '/ctApi/leave/detail',
            method: 'get',
            data: data
        })
    }

    /**
     *  删除
     */
    static delete(data) {
        return request({
            url: '/ctApi/leave/delete',
            method: 'post',
            data: data
        })
    }


}